POV-Ray : Newsgroups : povray.general : Pov 4.00 question : Re: Pov 4.00 question Server Time
7 Aug 2024 05:19:57 EDT (-0400)
  Re: Pov 4.00 question  
From: Felix Wiemann
Date: 31 Jan 2002 08:36:37
Message: <3c594865@news.povray.org>
I don't think that it's possible to make the SDL completely OO. OOP is too
complex to be used in the POV-Ray SDL. An example: When creating an object,
several elements must be created: pigment, finish, texture, ... But who
creates them? Does the user have to call MyObject.add_finish? This wouldn't
be logical. An object has a finish, whether it's created by the user or not.
POV-Ray had to have a lot of pre-defined classes which provide all those
features.
Also, the POV-Ray parser is not very fast. OOP would make parsing even
slower. Why not creating scenes with an external program (like moray)?
Although pseudo-OOP would be a good idea (to acces elements like
MyObject.Part1.finish.phong).


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.